package cn.legend.travel.admin.content.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("content_review_table")
public class Review implements Serializable {
    @TableId(type = IdType.AUTO)
    Long id;
    String title;
    String coverUrl;
    String brief;
    Long authorId;
    Long viewCount;
    Long likeCount;
    Integer state;
    Integer isDisplay;
    String keywords;
    Integer rate;
    /**
     * 数据创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    LocalDateTime gmtCreate;

    /**
     * 数据最后修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    LocalDateTime gmtModified;
}
